﻿import http from "../http"

// 分页查询出库明细
export function pageOutboundDetails(data) {
  console.log("DEBUG: Calling pageOutboundDetails with path:", "/warehousing/outbound/order/pageOutbound", "and data:", data);
  return http.post("/warehousing/outbound/order/pageOutbound", data)
}

// 获取出库单详情
export function getOutboundDetail(id) {
  return http.post("/warehousing/outbound/order/getDetail", null, {
    params: { id }
  })
}

// 导出出库明细
export function exportOutboundDetails(params) {
  // 暂时注释掉导出功能，因为后端尚未实现
  console.warn("导出功能暂未实现")
  return Promise.reject("导出功能暂未实现")
  // return http.download("/outbound/order/export", params, "出库明细.xlsx")
}
